﻿<%@ Page Language="C#" EnableEventValidation="false"  AutoEventWireup="true" CodeFile="StockManage.aspx.cs" Inherits="Comod_StockManage" %>
<%@ Register Src="../usercontrol/PageUrlGridView.ascx" TagName="PageUrlGridView" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>库存信息</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/changerows.js"></script>
<script type="text/javascript">
function CheckAll(form) {
    for (var i=0;i<form.elements.length;i++) {
	    var e = form.elements[i];
	    if (e.name != 'chkall' && e.type=='checkbox')
		    e.checked = form.chkall.checked;
    }
}
</script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body style="text-align: center">
<form id="form1" runat="server">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="2%"><img src="../images/module.gif" width="20" height="22" alt=""/></td>
<td ><asp:Label ID="lblwz" runat="server"></asp:Label></td>
<td  align="right" width="10%"><div><a href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a></div></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
    <tr><td colspan="2" width="100%" align="right" style="height: 25px"><img src="../images/search.gif" alt="搜索"  height="16"/>商品类型：<asp:TextBox
            ID="ComoditiesType" runat="server" CssClass="input1" Width="60px"></asp:TextBox>商品品牌：<asp:TextBox
            ID="Brand" runat="server" CssClass="input1" Width="60px"></asp:TextBox>商品名称：<asp:TextBox
            ID="ComoditiesName" runat="server" CssClass="input1" Width="60px"></asp:TextBox>商品型号：<asp:TextBox
            ID="Specifications" runat="server" Width="60px" CssClass="input1"></asp:TextBox>
        型号编号：<asp:TextBox ID="modulbh" runat="server" CssClass="input1" Width="60px"></asp:TextBox>
                    库房：<asp:DropDownList ID="Warehouse" runat="server"  Width="130px">
                     </asp:DropDownList>
                        库存：<asp:DropDownList ID="FactNum" runat="server">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value=">0">大于0</asp:ListItem>
                        <asp:ListItem Value="=0">等于0</asp:ListItem>
                        <asp:ListItem Value="<0">小于0</asp:ListItem>
                    </asp:DropDownList>
        <asp:Button ID="btnSelec" runat="server" Text=" 搜索 " CssClass="submit" CausesValidation="False" OnClick="btnSelec_Click"   /></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
                  
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False" CssClass="gridview" EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound">
            <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
            <asp:BoundField DataField="SpecificationsId" HeaderText="Id" />
            <asp:BoundField DataField="modulbh" HeaderText="型号编号" />
                <asp:BoundField DataField="ComoditiesType" HeaderText="商品类型"/> 
                <asp:BoundField DataField="Brand" HeaderText="商品品牌" />
                <asp:BoundField DataField="ComoditiesName" HeaderText="商品名称" />                
                <asp:BoundField DataField="Specifications" HeaderText="商品型号" />
                <asp:BoundField DataField="UserName" HeaderText="编辑人" />
                <asp:BoundField DataField="usTime" HeaderText="编辑时间" />
                <asp:BoundField DataField="countStock" HeaderText="入库(次)" />
                <asp:BoundField DataField="ProcNum" HeaderText="总数"/>
                <asp:BoundField DataField="SalesNum" HeaderText="出售" />
                <asp:BoundField DataField="FactNum" HeaderText="库存" />
                <asp:TemplateField HeaderText="日志">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("modulbh") %>' OnClick="lnkbtnEdit_Click" >入库</asp:LinkButton><asp:LinkButton ID="lnkbtnFlag" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("modulbh") %>' OnClick="lnkbtnFlag_Click" >销售</asp:LinkButton>
                    </ItemTemplate>
                   
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择"><ItemTemplate>
                    <asp:CheckBox ID="chkDelete"  runat="server" />
                </ItemTemplate>
                    <ItemStyle Width="40px" />
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
         <td style="width: 10%">
          </td>
                <td align="right">
                   <uc1:PageUrlGridView ID="PageNavigator1" runat="server" DataId="GvData" ConnectionString="connstr" ShowType="Num" PageSize="20" />
                </td>
            <td height="5" align="right"><input type="checkbox" name="chkall"  onclick="CheckAll(this.form)" value="on"/><font color="#FF0000">全选</font>&nbsp;
            <asp:Button ID="btnAdd" runat="server" Text="导出" CssClass="inputExcel"  OnClick="btnAdd_Click"   />&nbsp;<asp:Button  ID="btnallflag" OnClick="btnallflag_Click" runat="server" Text="批审" CssClass="submit" OnClientClick="return confirm('确定要审核吗?')" />&nbsp;<asp:Button  ID="btndel" runat="server" Text="删除" CssClass="submit" OnClientClick="return confirm('确定要删除吗?')" OnClick="btndel_Click" />
        
        </td>
      </tr>
      </table>
       
       <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="hfcheck" runat="server" />
         <asp:HiddenField ID="hfuserId" runat="server" />
         <asp:HiddenField ID="hfLevels" runat="server" />
      
       
</form>
</body>
</html>
<script language="javascript" type="text/javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>